﻿using Project.Core.Config.Entity;
using System.ComponentModel.DataAnnotations.Schema;

namespace Project.Core.Test.Entity {
    /// <summary>
    /// 用户
    /// </summary>
    [Table("sys_user")]
    public class SysUser : BaseEntity<int>
    {
        /// <summary>
        /// 用户名
        /// </summary>
        [Column("username")]
        public string UserName { get; set; }
        /// <summary>
        /// 密码
        /// </summary>
        [Column("password")]
        public string Password { get; set; }
        /// <summary>
        /// 手机号码
        /// </summary>
        [Column("phone")]
        public string? Phone { get; set; }
        /// <summary>
        /// 电子邮件
        /// </summary>
        [Column("email")]
        public string? Email { get; set; }
        /// <summary>
        /// 头像
        /// </summary>
        [Column("avatar")]
        public string? Avatar { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        [Column("created")]
        public DateTime Created { get; set; }
        /// <summary>
        /// 最后登陆时间
        /// </summary>
        [Column("last_login")]
        public DateTime? LastLogin { get; set; }
    }
}
